package com.tanhua.api.db;

import com.tanhua.domain.db.User;

public interface UserApi {

    //保存用户(返回保存用户的id)
    public Long save(User user);

    //根据手机号做用户查询
    public User findPhone(String phone);

    //根据ID查找用户
    User findbyid(Long id);

    //更新用户
    void updateUser(User user);
}
